home *** CD-ROM | disk | FTP | other *** search
- * gcc2
- * librun-time.a compiled with: -fno-function-cse -O2 -DNDEBUG
- * tests compiled with: -fno-function-cse -DDEBUG
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ Object new ] free ];
- 1000000 iterations, 87 sec (11494.252874/sec)
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ SubClass2 new ] free ];
- ( super class must be searched for +new)
- 1000000 iterations, 96 sec (10416.666667/sec)
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ SubClass2 newOther ] free ];
- (+newOther calls +new in its super class)
- 1000000 iterations, 111 sec (9009.009009/sec)
-
- aObj = [ Object new ];
- for( i = 0; i < ITERATIONS; ++i )
- [ aObj self ];
- 1000000 iterations, 13 sec (76923.076923/sec)
-
- aObj = [ SubClass3 new ];
- for( i = 0; i < ITERATIONS; ++i )
- [ aObj self ];
- (-self is implemented two classes up)
- 1000000 iterations, 13 sec (76923.076923/sec)
-
- aObj = [ SubClass3 new ];
- for( i = 0; i < ITERATIONS; ++i )
- [[ aObj self ] self ];
- 1000000 iterations, 25 sec (40000/sec)\nntti>
-
-
-
- * NeXT cc
- * cc -c -fno-function-cse -DDEBUG
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ Object new ] free ];
- 1000000 iterations, 74 sec (13513.513514/sec)
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ SubClass2 new ] free ];
- (super class must be searched for +new)
- 1000000 iterations, 77 sec (12987.012987/sec)
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ SubClass2 newOther ] free ];
- (+newOther calls +new in its super class)
- 1000000 iterations, 82 sec (12195.121951/sec)
-
- aObj = [ Object new ];
- for( i = 0; i < ITERATIONS; ++i )
- [ aObj self ];
- 1000000 iterations, 3 sec (333333.333333/sec)
-
- aObj = [ SubClass3 new ];
- for( i = 0; i < ITERATIONS; ++i )
- [ aObj self ];
- (-self is implemented two classes up)
- 1000000 iterations, 3 sec (333333.333333/sec)
-
- aObj = [ SubClass3 new ];
- for( i = 0; i < ITERATIONS; ++i )
- [[ aObj self ] self ];
- 1000000 iterations, 6 sec (166666.666667/sec)
-
-
- * gcc2
- * librun-time.a compiled with: -fno-function-cse -DDEBUG -UNDEBUG
- * tests compiled with: -fno-function-cse -DDEBUG
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ Object new ] free ];
- 1000000 iterations, 1509 sec (662.690524/sec)
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ SubClass2 new ] free ];
- (super class must be searched for +new)
- 1000000 iterations, 5692 sec (175.685172/sec)
-
- for( i = 0; i < ITERATIONS; ++i )
- [[ SubClass2 newOther ] free ];
- (+newOther calls +new in its super class)
- 1000000 iterations, 5718 sec (174.886324/sec)
-
- aObj = [ Object new ];
- for( i = 0; i < ITERATIONS; ++i )
- [ aObj self ];
- 1000000 iterations, 17 sec (58823.529412/sec)
-
- aObj = [ SubClass3 new ];
- for( i = 0; i < ITERATIONS; ++i )
- [ aObj self ];
- (-self is implemented two classes up)
- 1000000 iterations, 18 sec (55555.555556/sec)
-
- aObj = [ SubClass3 new ];
- for( i = 0; i < ITERATIONS; ++i )
- [[ aObj self ] self ];
- 1000000 iterations, 35 sec (28571.428571/sec)
-